← Course index · R113 Network & Systems
MMIBUT Métiers du Multimédia et de l'Internet · IUT de Vélizy

Lab · Local web server XAMPP

Module MM1R13 Hosting — installing and configuring a local web server with a database.

TPApacheMySQL / MariaDBPHP

01Objectives & hardware

Goal

Install and configure XAMPP, and use a web server with a database.

Hardware required

A PC running Windows or macOS.

Lab assessment (deliverable): write a report as a tutorial documenting the installation and configuration of XAMPP.

02Introduction & installation

What is XAMPP?

XAMPP is a free, open-source, cross-platform web server solution stack. The name is an acronym:

XCross-
platform
AApache
server
MMariaDB
(MySQL)
PPHP
language
PPerl
language

Task: installation steps

  1. Explain the role of each component (Apache, MySQL/MariaDB, PHP…) in your report.
  2. Download the latest version of XAMPP from the official website: apachefriends.org/download
  3. Install the software and detail every step in your report (with screenshots if needed).
  4. Important: note the installation directory (e.g. C:\xampp).
  5. Launch the XAMPP Control Panel and start the Apache and MySQL modules.

03Application & testing

Using the web server

  1. Deploy files: put your HTML, HTM or PHP files on the server, in the htdocs directory.
Warning: htdocs is the root of your local web server. Don't delete the default files and folders — the XAMPP dashboard uses them. Create a sub-folder for your work instead.
  1. Test URL: open your web server in a browser at http://localhost
  2. Test form: check that the HTML form you created in previous exercises works in this environment.

Database setup

  1. Open phpMyAdmin (from the XAMPP dashboard or at http://localhost/phpmyadmin).
  2. Create a new database named after yourself (e.g. db_lastname).

04Cleanup / restoration

Once the lab and your report are finished:

  1. Uninstall XAMPP with the Windows "Add or remove programs" tool.
  2. Manually delete any remaining folders or files you placed in the directory.